Optimal. Leaf size=73 \[ -\frac {1}{44} \log \left (2 x^2-x+3\right )+\frac {1}{44} \log \left (5 x^2+3 x+2\right )+\frac {3 \tan ^{-1}\left (\frac {1-4 x}{\sqrt {23}}\right )}{22 \sqrt {23}}+\frac {13 \tan ^{-1}\left (\frac {10 x+3}{\sqrt {31}}\right )}{22 \sqrt {31}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.05, antiderivative size = 73, normalized size of antiderivative = 1.00, number of steps used = 9, number of rules used = 5, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {980, 634, 618, 204, 628} \[ -\frac {1}{44} \log \left (2 x^2-x+3\right )+\frac {1}{44} \log \left (5 x^2+3 x+2\right )+\frac {3 \tan ^{-1}\left (\frac {1-4 x}{\sqrt {23}}\right )}{22 \sqrt {23}}+\frac {13 \tan ^{-1}\left (\frac {10 x+3}{\sqrt {31}}\right )}{22 \sqrt {31}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 204
Rule 618
Rule 628
Rule 634
Rule 980
Rubi steps
\begin {align*} \int \frac {1}{\left (3-x+2 x^2\right ) \left (2+3 x+5 x^2\right )} \, dx &=\frac {1}{242} \int \frac {-11-22 x}{3-x+2 x^2} \, dx+\frac {1}{242} \int \frac {88+55 x}{2+3 x+5 x^2} \, dx\\ &=-\left (\frac {1}{44} \int \frac {-1+4 x}{3-x+2 x^2} \, dx\right )+\frac {1}{44} \int \frac {3+10 x}{2+3 x+5 x^2} \, dx-\frac {3}{44} \int \frac {1}{3-x+2 x^2} \, dx+\frac {13}{44} \int \frac {1}{2+3 x+5 x^2} \, dx\\ &=-\frac {1}{44} \log \left (3-x+2 x^2\right )+\frac {1}{44} \log \left (2+3 x+5 x^2\right )+\frac {3}{22} \operatorname {Subst}\left (\int \frac {1}{-23-x^2} \, dx,x,-1+4 x\right )-\frac {13}{22} \operatorname {Subst}\left (\int \frac {1}{-31-x^2} \, dx,x,3+10 x\right )\\ &=\frac {3 \tan ^{-1}\left (\frac {1-4 x}{\sqrt {23}}\right )}{22 \sqrt {23}}+\frac {13 \tan ^{-1}\left (\frac {3+10 x}{\sqrt {31}}\right )}{22 \sqrt {31}}-\frac {1}{44} \log \left (3-x+2 x^2\right )+\frac {1}{44} \log \left (2+3 x+5 x^2\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.03, size = 73, normalized size = 1.00 \[ -\frac {1}{44} \log \left (2 x^2-x+3\right )+\frac {1}{44} \log \left (5 x^2+3 x+2\right )-\frac {3 \tan ^{-1}\left (\frac {4 x-1}{\sqrt {23}}\right )}{22 \sqrt {23}}+\frac {13 \tan ^{-1}\left (\frac {10 x+3}{\sqrt {31}}\right )}{22 \sqrt {31}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.81, size = 59, normalized size = 0.81 \[ \frac {13}{682} \, \sqrt {31} \arctan \left (\frac {1}{31} \, \sqrt {31} {\left (10 \, x + 3\right )}\right ) - \frac {3}{506} \, \sqrt {23} \arctan \left (\frac {1}{23} \, \sqrt {23} {\left (4 \, x - 1\right )}\right ) + \frac {1}{44} \, \log \left (5 \, x^{2} + 3 \, x + 2\right ) - \frac {1}{44} \, \log \left (2 \, x^{2} - x + 3\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.19, size = 59, normalized size = 0.81 \[ \frac {13}{682} \, \sqrt {31} \arctan \left (\frac {1}{31} \, \sqrt {31} {\left (10 \, x + 3\right )}\right ) - \frac {3}{506} \, \sqrt {23} \arctan \left (\frac {1}{23} \, \sqrt {23} {\left (4 \, x - 1\right )}\right ) + \frac {1}{44} \, \log \left (5 \, x^{2} + 3 \, x + 2\right ) - \frac {1}{44} \, \log \left (2 \, x^{2} - x + 3\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.01, size = 60, normalized size = 0.82 \[ \frac {13 \sqrt {31}\, \arctan \left (\frac {\left (10 x +3\right ) \sqrt {31}}{31}\right )}{682}-\frac {3 \sqrt {23}\, \arctan \left (\frac {\left (4 x -1\right ) \sqrt {23}}{23}\right )}{506}-\frac {\ln \left (2 x^{2}-x +3\right )}{44}+\frac {\ln \left (5 x^{2}+3 x +2\right )}{44} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.96, size = 59, normalized size = 0.81 \[ \frac {13}{682} \, \sqrt {31} \arctan \left (\frac {1}{31} \, \sqrt {31} {\left (10 \, x + 3\right )}\right ) - \frac {3}{506} \, \sqrt {23} \arctan \left (\frac {1}{23} \, \sqrt {23} {\left (4 \, x - 1\right )}\right ) + \frac {1}{44} \, \log \left (5 \, x^{2} + 3 \, x + 2\right ) - \frac {1}{44} \, \log \left (2 \, x^{2} - x + 3\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.19, size = 79, normalized size = 1.08 \[ \ln \left (x-\frac {1}{4}-\frac {\sqrt {23}\,1{}\mathrm {i}}{4}\right )\,\left (-\frac {1}{44}+\frac {\sqrt {23}\,3{}\mathrm {i}}{1012}\right )-\ln \left (x-\frac {1}{4}+\frac {\sqrt {23}\,1{}\mathrm {i}}{4}\right )\,\left (\frac {1}{44}+\frac {\sqrt {23}\,3{}\mathrm {i}}{1012}\right )-\ln \left (x+\frac {3}{10}-\frac {\sqrt {31}\,1{}\mathrm {i}}{10}\right )\,\left (-\frac {1}{44}+\frac {\sqrt {31}\,13{}\mathrm {i}}{1364}\right )+\ln \left (x+\frac {3}{10}+\frac {\sqrt {31}\,1{}\mathrm {i}}{10}\right )\,\left (\frac {1}{44}+\frac {\sqrt {31}\,13{}\mathrm {i}}{1364}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.24, size = 83, normalized size = 1.14 \[ - \frac {\log {\left (x^{2} - \frac {x}{2} + \frac {3}{2} \right )}}{44} + \frac {\log {\left (x^{2} + \frac {3 x}{5} + \frac {2}{5} \right )}}{44} - \frac {3 \sqrt {23} \operatorname {atan}{\left (\frac {4 \sqrt {23} x}{23} - \frac {\sqrt {23}}{23} \right )}}{506} + \frac {13 \sqrt {31} \operatorname {atan}{\left (\frac {10 \sqrt {31} x}{31} + \frac {3 \sqrt {31}}{31} \right )}}{682} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________